package com.ssy.common;

import java.util.List;

/**
 * PageInfo
 *
 * @author ssy
 * @date 2020/11/11
 **/
public class PageInfo<T> {

    /**
     * 页码
     */
    private Integer page;

    /**
     * 每页的数据条数
     */
    private Integer limit;

    /**
     * 总条数
     */
    private Integer count;

    /**
     * 数据.
     */
    private List<T> list;

    public PageInfo() {
    }

    public PageInfo(Integer page, Integer limit, Integer count, List<T> list) {
        this.page = page;
        this.limit = limit;
        this.count = count;
        this.list = list;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
